import React from 'react'
import {
  HashRouter,
  Switch,
  Route
} from 'react-router-dom'
import Index from '../views/Index/index.js'
import Home from '../views/Home/index.js'
import About from '../views/About/index.js'

export default class RouteConfig extends React.Component {
  render () {
    return (
      <HashRouter>
        <Switch>
          <Route path="/" exact component={Index} />
          <Route path="/home" exact component={Home}></Route>
          <Route path="/About" exact component={About}></Route>
        </Switch>
      </HashRouter>
    )
  }
}